//反向代理

const proxy = require('http-proxy-middleware');

module.exports = function (app) {
    //测试猫眼项目
    app.use(proxy('/ajax', {
        target: 'http://m.maoyan.com',
        changeOrigin: true
    }))
}